 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="title">
            <h2><a href="#" class="back" onclick="history.go(-1)"/>Alterar Senha</h2>
        </ui:define>

        <ui:define name="body">

            <h:form id="clienteForm" enctype="multipart/form-data">            
                <p:messages id="messages" closable="true" showDetail="true" autoUpdate="true"  />
                <p>  
                    <p:panel id="loginPanel" styleClass="container_24 clearfix">
                        <h2><a href="#">Alterar Login</a></h2>
                        <br/>
                        <p:outputLabel value="Login:" styleClass="grid_3"/>
                        <p:inputText styleClass="grid_10" readonly="true" value="#{managerPesquisarUsuario.usuarioLogin.login}"/>
                        <div class="clear"/> 
                        <p:outputLabel value="Senha Antiga:" styleClass="grid_3"/> 
                        <p:password  id="senhaAntiga" feedback="true" styleClass="grid_10" value="#{managerPesquisarUsuario.senhaAntiga}"/>

                        <div class="clear"/>
                        <p:outputLabel value="Nova Senha:" styleClass="grid_3"/>
                        <p:password styleClass="grid_10"  value="#{managerPesquisarUsuario.novaSenha}" feedback="true"/>
                        <div class="clear"/>
                        <p:outputLabel value="Repetir Senha:" styleClass="grid_3"/>
                        <p:password styleClass="grid_10"  value="#{managerPesquisarUsuario.senha}" feedback="true"/>
                    </p:panel>

                    <br/>
                    <br/>
                    <div class="buttonAction">
                        <p:commandButton value="Salvar" actionListener="#{managerPesquisarUsuario.atualizarLogin()}" 
                                         icon="ui-icon-disk" styleClass="ui-priority-primary"
                                         update="@form, :clienteForm:senhaAntiga"  />
                        <p:button value="Cancelar" icon="ui-icon-circle-close"
                                  href="indexusuario.xhtml"
                                  />
                    </div>
                </p>
            </h:form>
        </ui:define>
    </ui:composition>
</html>



